//
//  AKImageKit.h
//  AKImageToolKit
//
//  Created by Chen Ben on 11/15/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface AKImageKit : NSObject {
	// The images from the last directory
	NSArray*				imagesInDirectory;
	// The result of combination
	NSImage*				newCombination;
	// The accumulator image
	NSImage*				currentImage;
}

- (unsigned int)loadImagesFromDirectory:(NSString*)dirPath withType:(NSString*)imageType;
- (BOOL)combineImagesToNewCombination;

- (BOOL)drawNewCombinationToCurrentImageWithOperation:(NSCompositingOperation)aOperation
											 fraction:(float)aFraction;

- (NSImage*)currentImage;
- (void)setCurrentImage:(NSImage*)aValue;

- (BOOL)saveCurrentImageToPath:(NSString*)filePath;

- (NSImage*)combineImage:(NSImage*)image1 
			   withImage:(NSImage*)image2 
			   operation:(NSCompositingOperation)aOperation
				fraction:(float)aFraction;
@end
